package us.mooresr.webtroopmanager.client.events;

import com.google.gwt.event.shared.GwtEvent;



public class RoleDeletedEvent extends GwtEvent<RoleDeletedHandler> {
	private final Long deletedId;
	public static final Type<RoleDeletedHandler> TYPE = new Type<RoleDeletedHandler>();
	
	public RoleDeletedEvent(long deletedId) {
		super();
		this.deletedId = deletedId;
	}
	
	public Long getDeletedId() {
		return deletedId;
	}

	@Override
	protected void dispatch(RoleDeletedHandler handler) {
		handler.onDeleteEvent(this);
		
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<RoleDeletedHandler> getAssociatedType() {
		return TYPE;
	}
}
